<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0" 
                xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
                xmlns:ax="urn:aspxslt:handling" 
                xmlns:hel="urn:aspxslt:hellosample" 
                xmlns:lip="urn:aspxslt:loremipsumsample" 
                exclude-result-prefixes="ax">
    <xsl:include href="Master.xslt"/>

    <xsl:template match="/" mode="head">
        <title>Test Page</title>
    </xsl:template>

    <xsl:template match="/" mode="contents">
        <div style="border: solid thin black">
            <h1>Contents</h1>
            <xsl:apply-templates select="//ax:component" />
        </div>
    </xsl:template>

    <xsl:template match="ax:component[@type='AspXslt.Handling.Samples.HelloWorldComponent']">
        <div style="border: solid thin blue">
            <h2>Hello World Component</h2>
            <ul>
                <xsl:for-each select="hel:root/hel:item">
                    <li>
                        <xsl:value-of select="@description"/>
                    </li>
                </xsl:for-each>
            </ul>
        </div>
	</xsl:template>

    <xsl:template match="ax:component[@type='AspXslt.Handling.Samples.LoremIpsumComponent']">
        <div style="border: solid thin red">
            <h2>Lorem Ipsum Component</h2>
            <ul>
                <xsl:for-each select="lip:text/lip:x">
                    <li>
                        <xsl:value-of select="@description"/>
                    </li>
                </xsl:for-each>
            </ul>
        </div>
    </xsl:template>
</xsl:stylesheet>